﻿//页面引入boot.js已获取路径
__CreateJSPath = function (js) {
	var path = "";
    var scripts = document.getElementsByTagName("script");
    for (var i = 0, l = scripts.length; i < l; i++) {
        var src = scripts[i].src;
        if (src.indexOf(js) != -1) {
            var ss = src.split(js);
            path = ss[0];
            break;
        }
    }
    
    var href = location.href;
    href = href.split("#")[0];
    href = href.split("?")[0];
    var ss = href.split("/");
    ss.length = ss.length - 1;
    href = ss.join("/");
    if (path.indexOf("https:") == -1 && path.indexOf("http:") == -1 && path.indexOf("file:") == -1 && path.indexOf("\/") != 0) {
        path = href + "/" + path;
    }
    return path;
};
var bootPATH = __CreateJSPath("js/boot.js");

//debugger
//mini_debugger = true;
//miniui
//设置页面字体等公共的css
document.write('<link href="' + bootPATH + 'js/miniui/themes/default/miniui.css" rel="stylesheet" type="text/css" />');
document.write('<link href="' + bootPATH + 'js/miniui/themes/icons.css" rel="stylesheet" type="text/css" />');
document.write('<link href="' + bootPATH + 'js/miniui/themes/blue/skin.css" rel="stylesheet" type="text/css" />');
document.write('<link href="' + bootPATH + 'css/skin.css" rel="stylesheet" type="text/css" />');
//引入font-awesome图标字体库
document.write('<link href="' + bootPATH + 'js/miniui/res/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css" />');
document.write('<link href="' + bootPATH + 'js/miniui/res/toolbaroverflow.css" rel="stylesheet" type="text/css" />');
//引入query 
document.write('<script src="' + bootPATH + 'js/lib/jquery.min.js" type="text/javascript"></script>');
//引入miniui js库 
document.write('<script src="' + bootPATH + 'js/miniui/miniui.js" type="text/javascript" ></script>');
document.write('<script src="' + bootPATH + 'js/miniui/locale/zh_CN.js" type="text/javascript" ></script>');
document.write('<script src="' + bootPATH + 'js/miniui/toolbaroverflow.js" type="text/javascript"></script>');
// 引用js公共库
document.write('<script src="' + bootPATH + 'js/util/pyutil.js" type="text/javascript" ></script>');
document.write('<script src="' + bootPATH + 'js/util/Constants.js" type="text/javascript" ></script>');
document.write('<script src="' + bootPATH + 'js/util/validation.js" type="text/javascript" ></script>');
document.write('<script src="' + bootPATH + 'js/util/public.js" type="text/javascript" ></script>');
document.write('<script src="' + bootPATH + 'js/rs/component.js" type="text/javascript" ></script>');
document.write('<script src="' + bootPATH + 'js/rs/crud.js" type="text/javascript" ></script>');
document.write('<script src="' + bootPATH + 'js/report/CreateControl.js" type="text/javascript" ></script>');
